package me.lc.superDown.scene;

import me.lc.superDown.layer.HelpLayer;
import android.view.KeyEvent;

import com.wiyun.engine.nodes.Director;
import com.wiyun.engine.nodes.Scene;

public class HelpScene extends Scene {
	private static HelpScene instance = null;
	private static Object sync_obj = new Object();

	HelpLayer layer;

	private HelpScene() {
		layer = new HelpLayer();
		addChild(layer);
	}

	public static HelpScene make() {
		synchronized (sync_obj) {
			if (instance == null) {
				instance = new HelpScene();
			}
			return instance;
		}
	}

	@Override
	public boolean wyKeyDown(KeyEvent event) {

		if (event.getKeyCode() == KeyEvent.KEYCODE_BACK) {
			Director.getInstance().popScene();
			return true;
		}
		return super.wyKeyDown(event);
	}
}
